home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 49 / Amiga Format CD49 (2000-01-17)(Future Publishing)(GB)(Track 1 of 3)[!][issue 2000-02].iso / -serious- / misc / charmap / source / cmap.h < prev    next >
C/C++ Source or Header  |  1999-11-30  |  925b  |  28 lines

  1. /******************************************************************
  2. ** cmap.h : Datatypes and constants used by the programm         **
  3. **                                                               **
  4. ** Special Requirements: WorkBench 2.0, version 36 or above      **
  5. ******************************************************************/
  6.  
  7. #ifndef    CMAP_H
  8. #define    CMAP_H
  9.  
  10. /* Some constant definitions */
  11. #define    MIN_VERSION            36L
  12. #define    CHARMAP_VERSION    "1.2"
  13.  
  14. /* To init the charset, depending how many chars are defined in a font: */
  15. #define    Init_charset(textfont)        CharsetNum=(textfont->tf_LoChar>=32?2:1);
  16.  
  17. /* To get access easily to StringInfo struct: */
  18. #define    sti(gad)                            ((struct StringInfo *)gad->SpecialInfo)
  19.  
  20. /* Different values, to handle the recessed box while pressing lmb: */
  21. #define    KEYB_CONTROL        -1
  22. #define    NOT_PRESSED             0
  23. #define    PRESSED                 1
  24. #define    OUTSIDE_AREA         2
  25. #define    EVT_HOTKEY             1L
  26.  
  27. #endif
  28.